package com.fyl.oauth2.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



/**
 * @Author: 黯然
 * @Date: 2025/4/8 16:51
 * @Description:
 */
@RestController
@RequestMapping("/")
@Tag(name = "用户登录")
public class LoginController {
    @PostMapping(value = "login.do")
    @Operation(summary = "用户登录", description = "用户登录接口")
    public String login(@Parameter(description = "用户账号（加密后的）", example = "")
                        @RequestParam("username") String username,
                        @Parameter(description = "密码（加密后的）", example = "")
                        @RequestParam("password") String password) {

        System.out.println(username +"||" + password);
        return null;
    }
}
